#ifndef __INCLUDED_PLUGINDATA_HPP
#define __INCLUDED_PLUGINDATA_HPP

#include <vector>

template <typename T>
class t_PluginData
{
protected:
	std::vector<T> m_Data;
public:
	T * operator[](int plugin_id)
	{
		if(plugin_id < 1)
			return nullptr;
		m_Data.resize(plugin_id + 1, T());
		return &m_Data[plugin_id];
	}
};

#endif // __INCLUDED_PLUGINDATA_HPP